import 'package:x_project/generated/json/base/json_convert_content.dart';
import 'package:x_project/entity/login_entity.dart';

LoginEntity $LoginEntityFromJson(Map<String, dynamic> json) {
	final LoginEntity loginEntity = LoginEntity();
	final String? mobile = jsonConvert.convert<String>(json['mobile']);
	if (mobile != null) {
		loginEntity.mobile = mobile;
	}
	final String? token = jsonConvert.convert<String>(json['token']);
	if (token != null) {
		loginEntity.token = token;
	}
	return loginEntity;
}

Map<String, dynamic> $LoginEntityToJson(LoginEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['mobile'] = entity.mobile;
	data['token'] = entity.token;
	return data;
}